import Ax from './api';

export default {
  platformMessageAdd: (param = {}) => Ax.post(`/platformMessage/add`, param),
  platformMessageEdit: (param = {}) => Ax.post(`/platformMessage/edit`, param),
  platformMessageDelete: (query = {}) => Ax.delete(`/platformMessage/delete?_id=${query._id}`),
  platformMessageList: (param = {}) => Ax.post(`/platformMessage/list`, param),
  platformMessageDetail: (query = {}) => Ax.get(`/platformMessage/detail?_id=${query._id}`),
//接口模型
  platformMessageModelAdd: (param = {}) => Ax.post(`/platformMessageModel/add`, param),
  platformMessageModelEdit: (param = {}) => Ax.post(`/platformMessageModel/edit`, param),
  platformMessageModelDelete: (query = {}) => Ax.delete(`/platformMessageModel/delete?_id=${query._id}`),
  platformMessageModelList: (param = {}) => Ax.post(`/platformMessageModel/list`, param),
  platformMessageModelDetail: (query = {}) => Ax.get(`/platformMessageModel/detail?_id=${query._id}`),
};
